<article class="cl pd-20">
    <div class="cl pd-5 bg-1 bk-gray">
        <span class="l">
            <a href="javascript:;" onclick="del_all()" class="btn btn-danger radius">
                <i class="Hui-iconfont">&#xe6e2;</i> 批量删除</a>
        </span>
        <!-- <span class="r">共有数据：<strong>54</strong> 条</span>  -->
    </div>
    <div class="mt-10">
        <table class="table table-border table-bordered table-hover table-bg">
            <thead>
                <tr class="text-c">
                    <th width="25">
                        <input type="checkbox" value="" name="allcheck">
                    </th>
                    <th width="100px">ID</th>
                    <th width="100px">userid</th>
                    <th>用户名</th>
                    <th>登录时间</th>
                    <th>登录ip</th>
                    <th>登录状态</th>
                    <th>操作</th>
                </tr>
            </thead>
            <tbody>
                {notempty name="list"}
                {foreach $list as $val}
                <tr class="text-c">
                    <td>
                        <input type="checkbox" value="{$val.id}" name="checkbox[]">
                    </td>
                    <td>{$val.id}</td>
                    <td>{$val.userid}</td>
                    <td>{$val.username}</td>
                    <td>{$val.logintime|date="Y-m-d H:i:s"}</td>
                    <td>{$val.loginip}</td>
                    <td class="f-status">
                    {switch val.status}
                        {case 1}<span class="label radius label-danger">密码错误</span{/case}
                        {case 2}<span class="label radius label-default">禁用用户</span>{/case}
                        {default /}<span class="label radius label-success">成功</span>
                    {/switch}
                    </td>
                    <td class="td-manage">
                        <a title="删除" href="javascript:;" onclick="del(this,'{$val.id}')" class="btn btn-danger radius">
                            <i class="Hui-iconfont">&#xe6e2;</i>
                        </a>
                    </td>
                </tr>
                {/foreach}
                {/notempty}
            </tbody>
        </table>
    </div>
    <div class="cl pd-5 bg-1 bk-gray mt-20 ">
        <span class="r">{notempty name="list"}{$list->render()|raw}{/notempty}</span>
    </div>
</article>